package com.huawei.hotel.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class IndexController {
    @RequestMapping(value = "/toIndex", method = RequestMethod.GET)
    public String toIndex() {
        System.out.println("进入首页");
        // ModelAndView mv1 = new ModelAndView("redirect:/hello.jsp");
        // return mv1;
        return "index";
    }

}
